using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CentralOffice.WebClient.desktop
{
    public partial class DesktopWidget : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                lblTitle.Text = Title;
            }
        }

        public string Title
        {
            get { return this.ViewState["Title"] != null ? (string)this.ViewState["Title"] : ""; }
            set { this.ViewState["Title"] = value; }
        }

        public string NavigateUrl
        {
            get { return this.ViewState["NavigateUrl"] != null ? (string)this.ViewState["Title"] : ""; }
            set 
            { 
                this.ViewState["NavigateUrl"] = value;
                HyperLink1.NavigateUrl = value;
            }
        }

        public int Number
        {
            get { return this.ViewState["Number"] != null ? (int)this.ViewState["Number"] : 0; }
            set { this.ViewState["Number"] = value; }
        }

        public Repeater Repeater
        {
            get { return Repeater2; }
        }
    }
}